import { CallSprite } from "../selectPanel/CallSprite";
import { GlobalClass } from "../../../../../com/mui/core/GlobalClass";
import { ImagesConst } from "../../../resource/ImagesConst";
import { ChatHintIcon } from "../chatPrivate/ChatHintIcon";
//class ChatGuildHintIcon
    
    export  class ChatGuildHintIcon extends CallSprite
    {
        constructor()
        {
            super();
            this.init();
            this.addListeners();
            return;
        }

        /* internal  */init(): void
        {
            this._bitmap = GlobalClass.getBitmap(ImagesConst.ChatGuild);
            this._bitmap.width = ChatHintIcon.iconWidth;
            this._bitmap.height = ChatHintIcon.iconWidth;
            this.addChild(this._bitmap);
            return;
        }

        /* internal  */addListeners(): void
        {
            this.addEventListener(flash.events.MouseEvent.CLICK, this.onClick);
            return;
        }

        /* internal  */onClick(arg1: Object /* flash.events.MouseEvent */): void
        {
            callAll(null);
            return;
        }

        /* internal */ /* var */_bitmap: Object /* flash.display.Bitmap */;
    }
